import { pubRequire } from '@utils/public'
const baseUrl = '/coupons'
// 新增关联项目名称列表
export function addProject(names, callBack, errBack) {
    return pubRequire('post', `${baseUrl}/project-names?type=common`, names, callBack, errBack)
}

// 获取所有关联项目名称列表
export function getProject(callBack, errBack) {
    return pubRequire('get', `${baseUrl}/project-names?type=common`,{}, callBack, errBack)
}